<!DOCTYPE html>
<html lang="en">
<#import "../common/userLayout.ftl" as layout/>
<@layout.head title=""></@layout.head>
<head>
    <title>维修结果</title>
    <link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/user/skinA/css/theme.css?v=2645110704">
    <link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/user/skinA/css/page/eresult.css?v=3653060703">
    <script src="${request.contextPath}/assets/user/js/page/eresult.js?v=3653060703"></script>
</head>
<body>
<div id="background">
    <div id="info">
        <div id="name">${maintenance.name}</div>
        <div id="position">${maintenance.orgName}-${maintenance.usePosition}</div>
        <div id="type">${maintenance.questionTypeName}：</div>
        <div id="code">提交时间：${maintenance.createTime?substring(0,16)} 流水号：${maintenance.flowCode}</div>
        <div id="detail">${maintenance.questionDescripe}</div>
    </div>
    <div class="weui-cells__title">维修结论</div>
    <div class="weui-cells weui-cells_checkbox ">
        <div class="weui-flex">
            <label class="weui-cell weui-check__label weui-flex__item" for="s11">
                <div class="weui-cell__hd">
                    <input type="radio" class="weui-check" value="1" name="checkbox1" id="s11" checked="checked">
                    <i class="weui-icon-checked"></i>
                </div>
                <div class="weui-cell__bd">
                    维修成功
                </div>
            </label>
            <label class="weui-cell weui-check__label weui-flex__item" for="s12">
                <div class="weui-cell__hd">
                    <input type="radio" name="checkbox1" value="2"  class="weui-check" id="s12">
                    <i class="weui-icon-checked"></i>
                </div>
                <div class="weui-cell__bd">
                    维修失败
                </div>
            </label>
        </div>
        <div class="weui-cell" id="resultTypeRow">
            <div class="weui-cell__hd"><label for="resultType" class="weui-label">维修方式</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" id="resultType" type="text" value="" readonly="">
            </div>
        </div>

        <div class="weui-cell" style="display: none;" id="resonTypeRow">
            <div class="weui-cell__hd"><label for="reasonType" class="weui-label">失败原因</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" id="reasonType" type="text" value="" readonly="">
            </div>
        </div>
    </div>
    <div class="weui-cells__title">维修说明</div>
    <div class="weui-cells weui-cells_form">
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <textarea class="weui-textarea" id="describe" placeholder="请输入维修说明" rows="3"></textarea>
            </div>
        </div>
    </div>
    <div class="weui-btn-area">
        <a class="weui-btn weui-btn_primary" href="javascript:" id="submit">确定</a>
    </div>
    <div class="weui-btn-area">
        <a class="weui-btn weui-btn_default" href="javascript:" id="cancel">取消</a>
    </div>
</div>
</body>
<script>
    var serverConst = {
        repairType: [
        <#list repairType as item>
            {code: "${item.code}",name:"${item.name}"},
        </#list>],
        failReason: [
        <#list failReason as item>
            {code: "${item.code}",name:"${item.name}"},
        </#list>]
    }
    var id = "${maintenance.id?c}";
    var eid="${maintenance.eid?c}";
</script>
</html>